<style>
/* 重写样式 */
.fui-header.block {
    display: block;
}

.fui-tab {
    margin: 0;
}

.fui-tab a {
    height: 2.2rem;
    line-height: 2.2rem;
}

.fui-tab:after {
    display: none;
}
.nickname {
    color: #50b6fe;
}
    .shop-index-page .menu {height: auto; background: #fff;}
    .shop-index-page .menu .item {height: auto; width: 1%; padding: 0.5rem 0; margin: 0; font-size: 0.7rem; color: #636363; text-align: center; display: table-cell;position: relative;}
    .shop-index-page .menu .item:after  {font-size: 0.7rem;position: absolute;content: '';left:-1px;top:0.5rem;bottom:0.5rem;border-left:1px solid #d9d9d9;}
    .content-empty{padding:1rem 0;margin:0;}
source{
    min-width: 100%;
    min-height: 100%;
    height: auto;
    width: auto;
}
.btn.btn-success{background:#F5F0FF}
.btn.btn-success, .jy-btn1{border-radius:1rem;background:linear-gradient(95.84deg, #EDF6FF 5.59%, #F0F3FF 51.42%, #F5F0FF 97.24%)}
.btn.btn-blue, .jy-btn2{border-radius:1rem;background:linear-gradient(136deg, #7783EA, #4e6ef2, #7274f9, #9f66ff)}
.jy-topbg{background:linear-gradient(to bottom, #f8dfd8, #F5F0FF, #F0F3FF, #f7f7f7)}
</style>
<div class='fui-page fui-page-current'>
	<div class="fui-content">
	<div class="jy-topbg" style="top:0;padding-top: 0.5rem;">
	<div class="jy-content">
	<div class="radius" style="background: #fff;">
		<div class="fui-cellone radius" style="background: #fff;">
			<div class="fui-cellone-text bold">
				声纹列表
			</div>
			<div class="fui-cellone-remark remark" ng-click="access_json('/editshengwen//agentid='+pagedata.agent.id);">
				添加说话人
			</div>
		</div>
		<div class="fui-cell-group" style="max-height:22rem;overflow-y:scroll;margin-top:0;-webkit-overflow-scrolling: touch;">
			<div class="fui-cell" ng-repeat="item in pagedata.list">
				<div class="fui-cell-text">
					<div class="text">
					{{item.title}}
					</div>
					<div class="text" style="font-size:0.6rem">
					{{item.desc ||''}}
					</div>
					<div class="gray" style="font-size:0.6rem">
					{{item.createtime ||'***'}}
					</div>
				</div>
				<div class="fui-cell-remark noremark">
					<div class="btn btn-sm btn-success" ng-click="access_json('/editshengwen//id='+item.id);" style="color:#7783EA;border-radius:0.2rem">编辑</div>
					<div class="btn btn-sm btn-success" ng-click="pagedata.delshengwen(item.id)" style="color:red;border-radius:0.2rem">删除</div>
				</div>
			</div>
			<div class="content-empty" ng-if="!pagedata.list || pagedata.list.length == 0">
					<image style="border-radius: 100%;width:2rem;height:2rem" src="../addons/jy_aiagent/resource/images/goods.png" />
					<div style="padding-top:0.3rem;color: #999;font-size: 0.75rem">暂时没有声纹</div>
			</div>
		</div>
	</div>
	<div ng-include="sys_html('common/_copyright',true)"></div>
	</div>
	</div>
</div>
</div>
<div ng-include="sys_html('common/_footer')"></div>
<script>
scope.tool.get_list('jy_aiagent/shengwen/getlist/agentid='+scope.pagedata.agent.id,true);
scope.pagedata.scroll_bottom=function(){
		scope.tool.get_list('jy_aiagent/shengwen/getlist/agentid='+scope.pagedata.agent.id);
}
scope.pagedata.delshengwen=function(id){
	scope.confirm({
		'message':'确认要删除声纹吗？删除后将无法找回！',
		'success':function(){
			scope.post_json('jy_aiagent/shengwen/delshengwen/id='+id,{'id':id});
		},
		'fail':function(){}
	});
}
</script>